package com.wang.service.impl;


import com.aaa.entity.UUserInfo;
import com.aaa.security.util.WebUtils;
import com.aaa.util.JwtUtil;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.wang.mapper.MyCartVoMapper;
import com.wang.mapper.UUserInfoMapper;
import com.wang.service.MyCartVoService;
import com.wang.vo.MyCartVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MyCartVoServiceImpl extends ServiceImpl<MyCartVoMapper, MyCartVo> implements MyCartVoService {

    @Autowired
    private MyCartVoMapper myCartVoMapper;
    @Autowired
    private UUserInfoMapper uUserInfoMapper;
    @Autowired
    private MyCartVoService myCartVoService1;
    @Override
    public Result lists(String phone,Integer currentPage, Integer pageSize) {

        List<MyCartVo> myCartVos = myCartVoMapper.limit2(phone, currentPage, pageSize);

        return new Result(2000, "success", myCartVos);
    }
}
